package com.lyx.router

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.lyx.router.annotations.Destination
import com.lyx.router_runtime.Router

@Destination(url = "router://page-home", description = "App首页")
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<View>(R.id.tv).apply {
            setOnClickListener {
                Router.go(this@MainActivity, "router://lyx/second")
            }
        }
    }

}

